package com.kfm.autoconfig.config;

import com.kfm.autoconfig.bean.TestBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class UserConfig {

    @Bean
//    @Conditional(TestCondition.class)
//    @ConditionalOnClass(name = "com.mysql.cj.jdbc.Driver")
    public TestBean testBean(){
        return new TestBean();
    }
}
